﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QuetionAuditBatch.aspx.cs"
    Inherits="ExpertMIS.Admin.QuetionAuditBatch" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .gridview_header
        {
        }
        .gridview_header_checkbox
        {
        }
        .gridview_row_checkbox
        {
        }
    </style>

    <script src="../js/jquery-1.3.2.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            //确定按钮事件
            $('#<%=btnOK.ClientID%>').click(function() {
                var quesIDList = "";
                var bAppend = false;
                $(":checked").parent().each(function() {
                    if ($(this).attr("rowid")){
                        if (bAppend) {
                            quesIDList += ",";
                        }
                        quesIDList += $(this).attr("rowid");
                        bAppend = true;
                    }
                });
                
                window.dialogArguments.selectQuesIDList = quesIDList;
                window.close();
                return false;
            });

            // 取消按钮事件
            $('#<%=btnCancel.ClientID%>').click(function() {
                window.dialogArguments.selectQuesIDList = "";
                window.close();
                return false;
            });
        });
    </script>

    <base target="_parent" />
</head>
<body>
    <form id="form1" runat="server">
    <table style="font-size: 8pt; width: 500px;">
        <tr>
            <td style="text-align: left">
                <table cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;">
                    <tr>
                        <td>
                            问题关键字
                        </td>
                        <td>
                            <asp:TextBox ID="txTitle" runat="server" Width="138px"></asp:TextBox>
                        </td>
                        <td>
                            问题领域
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlQueDomain" runat="server" Width="135px">
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:Button ID="btnQuery" runat="server" OnClick="btnQuery_Click" Text="查询" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5">
                            <asp:GridView ID="gvList" runat="server" AllowPaging="True" AllowSorting="True" BackColor="White"
                                BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4"
                                ForeColor="Black" GridLines="Vertical" 
                                OnRowDataBound="gvList_RowDataBound" Width="100%">
                                <RowStyle BackColor="#F7F7DE" Font-Names="宋体" Font-Size="9pt" Width="100px" />
                                <Columns>
                                    <asp:TemplateField ShowHeader="False" ItemStyle-Width="40px">
                                        <ItemTemplate>
                                            <table cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <asp:CheckBox ID="cbChecked" runat="server" CssClass="gridview_row_checkbox" EnableViewState="true" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </ItemTemplate>
                                        <HeaderTemplate>
                                            <asp:CheckBox ID="cbSelectedAll" runat="server" CssClass="gridview_header_checkbox"
                                                Text="全选" AutoPostBack="true" OnCheckedChanged="cbSelectedAll_CheckedChanged" />
                                        </HeaderTemplate>
                                        <ItemStyle Width="50px"></ItemStyle>
                                    </asp:TemplateField>
                                </Columns>
                                <FooterStyle BackColor="#CCCC99" />
                                <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                                <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="False" Font-Names="宋体" Font-Size="10pt"
                                    ForeColor="White" />
                                <HeaderStyle BackColor="#6B696B" Font-Bold="True" Font-Names="宋体" Font-Size="12px"
                                    ForeColor="White" HorizontalAlign="Left" />
                                <AlternatingRowStyle BackColor="White" />
                                <EmptyDataTemplate>
                                    <h1 style="color: Red;">
                                        查询无数据</h1>
                                </EmptyDataTemplate>
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                    <td></td>
                    <td></td>
                    <td>
                    <asp:Button ID="btnOK" runat="server"  Text="确定" />
                    </td>
                    <td>
                    <asp:Button ID="btnCancel" runat="server" Text="取消" />
                    </td>
                    <td></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
